// 资讯相关接口
import request from '@/utils/request'

// 查询资讯列表
export function informationList(query) {
    return request({
        url: '/biz/information/list',
        method: 'get',
        params: query
    })
}

// 根据Id查询
export function informationQueryById(query) {
    return request({
        url: '/biz/information/queryById',
        method: 'get',
        params: query
    })
}

// 保存
export function informationSave(data) {
    return request({
        url: '/biz/information/save',
        method: 'post',
        data
    })
}

// 修改
export function informationUpdate(data) {
    return request({
        url: '/biz/information/update',
        method: 'put',
        data
    })
}

// 删除
export function informationDelete(id) {
    return request({
        url: `/biz/information/delete/${id}`,
        method: 'delete',
    })
}